<?php
include './inc.php';
header('content-type:text/plain;charset=utf-8');


//var_export($_SESSION);
//echo "\n";
//
//$ret = App::checkAdmin('admin', 'admin@fz');
//$ret = App::modifyAdmin('admin', '333');
//
//var_dump($ret);


$guestname = 'joseph';
$email = 'tqjs@qq.com';
$telephone = '';
$content = 'testadf;skfa';
//Guestbook::add($guestname, $email, $telephone, $content);


//Guestbook::sendReplyMail('tesdfas;dfad', 'tqjs@qq.com');

//Mailer::setDebug();
//$subject = 'test subject ';
//$body  = 'mail it dd';
//$to_email = 'tqjs@qq.com';
//$ret = Mailer::send($subject, $body, $to_email);
//var_dump($ret);


//$zip = new ZipArchive;
//$res = $zip->open('d:/test.zip', ZipArchive::OVERWRITE);
//if ($res === TRUE) {
//    $zip->addFromString('test.txt', 'file content goes here');
//    $zip->addFile('d:/data2.txt', 'data3.txt');
//    $zip->close();
//    echo 'ok';
//} else {
//    echo 'failed';
//}


